Part Number Hot Search : 
C143E 2SD1771 TFDS6401 OLG211 M54HC690 1003658 IRFS630B EL50P1
Product Description
Full Text Search
 

To Download PC33991DHR2 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  prel i minar y motorola semiconductor technical data 33991 simplified application schematic this document contains information on a product under development. motorola reserves the right to change or discontinue this product without notice. ? motorola, inc. 2002 document order number: mc33991/d rev. 0, 10/2002 33991 preliminary information gauge driver integrated circuit the 33991device is a single packaged, serial peripheral interface (spi) controlled, dual stepper motor gauge driver integrated circuit (ic). this monolithic ic consists of four dual output h-bridge coil drivers and the associated control logic. each pair of h-bridge drivers is used to automatically control the speed, direction and magnitude of current through the two coils of a 2-phase instrumentation stepper motor, similar to an mmt licensed afic 6405. this device is ideal for use in automotive instrumentation systems requiring distributed and flexible stepper motor gauge driving. the device also eases the transition to stepper motors from air core motors by emulating the air core pointer movement with little additional processor bandwidth utilization. the device has many attractive features including: ? mmt-licensed two-phase stepper motor compatible  minimal processor overhead required  fully integrated pointer movement and position state machine with air core movement emulation  4096 possible steady state pointer positions 340 maximum pointer sweep  linear 4500 2  max pointer velocity of 400  analog micro stepping (12 steps/degree of pointer movement)  pointer calibration and return to zero  spi controlled 16-bit word  calibratable internal clock  low sleep mode current dw suffix plastic package case 751e-04 soicw ordering information device temperature range (t a ) package pc33991dh/r2 -40 to 125c soicw cos1- cos0- cos1+ cos0+ sin0+ sin1- sin1+ sin0- mc33991 gdic gnd sclk si so csb rstb vdd battery 5v reg mcu typical application motor 0 motor 1 rtz 0.1 0.1 33991 gdic mcu gauge driver integrated circuit f r e e s c a l e s e m i c o n d u c t o r , i freescale semiconductor, inc. f o r m o r e i n f o r m a t i o n o n t h i s p r o d u c t , g o t o : w w w . f r e e s c a l e . c o m n c . . .
33991 motorola analog integrated circuit device data 2 figure 1. 33991 block diagram h-bridge & control ilim over temp internal reference spi logic oscillator under & over voltage detect rtz cos0+ cos0- sin0+ sin0- cos1+ cos1+ rtz sin1- sin1+ gnd v dd cs sclk so si rst v pwr cos0 sin0 cos1 sin1 f r e e s c a l e s e m i c o n d u c t o r , i freescale semiconductor, inc. f o r m o r e i n f o r m a t i o n o n t h i s p r o d u c t , g o t o : w w w . f r e e s c a l e . c o m n c . . .
motorola analog integrated circuit device data 33991 3 pin functions pin number pin name description 1 cos0+ h-bridge output. this is the output pin of a half bridge, designed to source or sink current. the h-bridge pins linearly drive the sine and cosine coils of two separate stepper motors to provide four-quadrant operation. 2 cos0- h-bridge output. this is the output pin of a half bridge, designed to source or sink current. the h-bridge pins linearly drive the sine and cosine coils of two separate stepper motors to provide four-quadrant operation. 3 sin0+ h-bridge output. this is the output pin of a half bridge, designed to source or sink current. the h-bridge pins linearly drive the sine and cosine coils of two separate stepper motors to provide four-quadrant operation. 4 sin0- h-bridge output. this is the output pin of a half bridge, designed to source or sink current. the h-bridge pins linearly drive the sine and cosine coils of two separate stepper motors to provide four-quadrant operation. 5-8 gnd ground. these pins serve as the ground for the source of the low -side output transistors as well as the logic portion of the device. they also help dissipate heat from the device. 9 cs chip select. this pin is connected to a chip select output of a lsi ic. this ic controls which device is addressed by pulling the cs pin of the desired device low, enabling the spi com munication with the device, while other devices on the serial link keep their serial outputs tri-stated. this input has an internal active pull-up and requires cmos logic levels. this pin is also used to calibrate the internal clock. 10 sclk serial clock. this pin is connected to the sclk pin of the master device and acts as a bit clock for the spi port. it transitions one time per bit transferred at an operating frequency, fspi, defined in the coil output timing table. it is idle between command transfers. the pin is 50 percent duty cycle, with cmos logic levels. this signal is used to shift data to and from the device. 11 so serial output. this pin is connected to the spi serial data input pin of the master device, or to the si pin of the next device in a daisy chain. this output will remain tri-stated unless the device is selected by a low cs signal. the output signal generated will have cmos logic levels and the output data will transition on the rising edges of sclk. the serial output data provides status feedback and fault information for each output and is returned msb first when the device is addressed. 12 si serial input. this pin is connected to the spi serial data output pin of the master device from which it receives output command data. this input has an internal active pull-down requiring cmos logic levels. the serial data transmitted on this line is a 16-bit control command sent msb first, controling the gauge functions. the master ensures data is available on the falling edge of sclk. 13 rtz multiplexed output. this multiplexed output pin of the non-driven coil during an rtz event. 14 v dd voltage. this spi and logic power supply input will work with 5.0 v supplies. cos1+ gnd gnd gnd gnd v pwr rst v dd rtz cos1- sin1+ sin1- cos0+ gnd gnd gnd gnd cs sclk si cos0- sin0+ sin0- so 5 6 7 8 9 10 11 12 2 3 4 24 20 19 18 17 16 15 13 23 22 21 14 1 24 wide body soic thermally enhanced lead frame r j-lead =15c/w f r e e s c a l e s e m i c o n d u c t o r , i freescale semiconductor, inc. f o r m o r e i n f o r m a t i o n o n t h i s p r o d u c t , g o t o : w w w . f r e e s c a l e . c o m n c . . .
33991 motorola analog integrated circuit device data 4 15 rst reset. if the master decides to reset the device, or place it into a sleep state, the rst pinisdriventoalogic0. a logic 0 on the rst pin will force all internal logic to the known default state. this input has an internal active pull-up. 16 v pwr battery voltage. power supply. 17-20 gnd ground. these pins serve as the ground for the source of the low -side output transistors as well as the logic portion of the device. they also help dissipate heat from the device. 21 sin1- h-bridge output. this pin is the output of a half bridge, designed to source or sink current. the h-bridge pins linearly drive the sine and cosine coils of two separate stepper motors to provide four-quadrant operation. 22 sin1+ h-bridge output. this pin is the output of a half bridge, designed to source or sink current. the h-bridge pins linearly drive the sine and cosine coils of two separate stepper motors to provide four-quadrant operation. 23 cos1- h-bridge output. this pin is the output of a half bridge, designed to source or sink current. the h-bridge pins linearly drive the sine and cosine coils of two separate stepper motors to provide four-quadrant operation. 24 cos1+ h-bridge output. this pin is the output of a half bridge, designed to source or sink current. the h-bridge pins linearly drive the sine and cosine coils of two separate stepper motors to provide four-quadrant operation. pin functions pin number pin name description f r e e s c a l e s e m i c o n d u c t o r , i freescale semiconductor, inc. f o r m o r e i n f o r m a t i o n o n t h i s p r o d u c t , g o t o : w w w . f r e e s c a l e . c o m n c . . .
motorola analog integrated circuit device data 33991 5 static electrical characteristics (characteristics noted under conditions 4.75 v < v dd < 5.25 v, -40 c < tj < 150 c, unless otherwise noted) characteristic symbol min nom max unit power input supply voltage range fully operational v pwr 6.5 ? 26.0 v v pwr supply current (gauge 1 & 2 outputs on, no output loads) i pwr(on) ? 4.0 6.0 ma v pwr supply current (all outputs disabled) (reset = logic 0, v dd =5v) (reset = logic 0, v dd =0v) i pwrslp1 i pwrslp2 ? 42 15 60 25 a over voltage detection level (note1) v pwrov 26 32 38 v under voltage detection level (note2) v pwruv 5.0 5.6 6.2 v logic supply voltage range (5 v nominal supply) v dd 4.5 5.0 5.5 v under v dd logic reset v dduv ? ? 4.5 v v dd supply current (sleep: reset logic 0) i dd(off) ? 40 65 a v dd supply current (outputs enabled) i dd(on) ? 1 1.8 ma notes: 1. outputs will disable and must be re-enabled via the pecr command. 2. outputs remain active; however, the reduction in dr ive voltage may result in a loss of position control. f r e e s c a l e s e m i c o n d u c t o r , i freescale semiconductor, inc. f o r m o r e i n f o r m a t i o n o n t h i s p r o d u c t , g o t o : w w w . f r e e s c a l e . c o m n c . . .
33991 motorola analog integrated circuit device data 6 characteristic symbol min norm max unit power outputs microstep output (measured across coil outputs) sin0,1,+/- (cos0,1,+/-) (see pin functions ) rout = 200 ? steps 6,18 (0,12) steps 5,7,17,19 (1,11,13,23) steps 4,8.16,20 (2,10,14,22) steps 3, 9,15,21 (3,9,15,21) steps 2,10,14,22 (4,8,16,20) steps 1,11,13,23 (5,7,17,19) steps 0,12 (6,18) vst6 vst5 vst4 vst3 vst2 vst1 vst0 4.9 0.94xvst6 0.84xvst6 0.69xvst6 0.47xvst6 0.23xvst6 -0.1 5.3 0.97xvst6 0.87xvst6 0.71xvst6 0.50xvst6 0.26xvst6 0 6.0 1.00xvst6 0.94xvst6 0.79xvst6 0.57xvst6 0.31xvst6 0.1 v full step active output (measured across coil outputs) sin0,1, (cos0,1, ) (see 5-4) steps 1,3 (0,2) vfs 4.9 5.3 6.0 v microstep, full step output (measured from coil low side to ground) sin0,1, (cos0,1, ) i out =30ma vls 0 0.1 0.3 v output flyback clamp (note3) vfb ? vst1+0.5 vst1+1.0 v output current limit (out=vstp6) i lim 40 100 170 ma over temperature shutdown otsd 155 ? 180 c over temperature hysteresis (note3) ot hys 8 ? 16 c notes: 3. not 100 percent tested. static electrical characteristics (characteristics noted under conditions 4.75 v < v dd < 5.25 v, -40 c < tj < 150 c, unless otherwise noted) f r e e s c a l e s e m i c o n d u c t o r , i freescale semiconductor, inc. f o r m o r e i n f o r m a t i o n o n t h i s p r o d u c t , g o t o : w w w . f r e e s c a l e . c o m n c . . .
motorola analog integrated circuit device data 33991 7 characteristic symbol min typ max unit control i/o input logic high voltage (note4) v ih 2.0 ? ? v input logic low voltage (note4) v il ? ? 0.8 v input logic voltage hysteresis (note5) v in(hyst) ? 100 ? mv input logic pull down current (si, sclk) i dwn 3 ? 20 a input logic pull-up current (cs ,rst ) i up 5 ? 20 a so high state output voltage (ioh = 1.0 ma) v soh 0.8vdd ? ? v so low state output voltage (iol = -1.6 ma) v sol ? 0.2 0.4 v so tri-state leakage current (cs 3.5 v) s olk -5 0 5 a input capacitance (note6) c in ? 4 12 pf so tri-state capacitance (note6) c so ? ? 20 pf notes: 4. v dd =5v 5. not production tested; guaranteed by design. 6. capacitance not measured; guaranteed by design. static electrical characteristics (characteristics noted under conditions 4.75 v < v dd < 5.25 v, -40 c < tj < 150 c, unless otherwise noted) f r e e s c a l e s e m i c o n d u c t o r , i freescale semiconductor, inc. f o r m o r e i n f o r m a t i o n o n t h i s p r o d u c t , g o t o : w w w . f r e e s c a l e . c o m n c . . .
33991 motorola analog integrated circuit device data 8 characteristic symbol min typ max unit power output and clock timings sin, cos output turn on delay time (time from rising cs enabling outputs to steady state coil voltages and currents) (note7) t dhy(on) ? ? 1 ms sin, cos output turn off delay time (time from rising cs disables outputs to steady state coil voltages and currents) (note7) t dhy(off) ? ? 1 ms uncalibrated oscillator cycle time t clu 0.65 1.0 1.7 s calibrated oscillator cycle time (cal pulse = 8 s, pecr d4 is logic 0) t clo 1.0 1.1 1.2 s calibrated oscillator cycle time (cal pulse = 8 s, pecr d4 is logic 1) t clo 0.9 1.0 1.1 s maximum pointer speed (note8) v max ? ? 400 deg/s maximum pointer acceleration (note8) a max ? ? 4500 deg/s 2 notes: 7. maximum specified time for the 33991 is the minimum guaranteed time needed from the micro. 8. the minimum and maximum value will vary proportionally to th e internal clock tolerance. these are not 100 percent tested. static electrical characteristics (characteristics noted under conditions 4.75 v < v dd < 5.25 v, -40 c < tj < 150 c, unless otherwise noted) f r e e s c a l e s e m i c o n d u c t o r , i freescale semiconductor, inc. f o r m o r e i n f o r m a t i o n o n t h i s p r o d u c t , g o t o : w w w . f r e e s c a l e . c o m n c . . .
motorola analog integrated circuit device data 33991 9 characteristic symbol min typ max unit spi timing interface recommended frequency of spi operation f spi ? 1 3 mhz falling edge of cs to rising edge of sclk required setup time) (note9) t lead ? 50 167 ns falling edge of sclk to rising edge of cs (required setup time)(note9) t lag ? 50 167 ns si to falling edge of sclk (required setup time) (note9) ts lsu ? 25 83 ns falling edge of sclk to si (required hold time) (note9) tsi (hold) ? 25 83 ns so rise time (cl = 200 pf) tr so ? 25 50 ns so fall time (cl = 200 pf) tf so ? 25 50 ns si, cs , sclk, incoming signal rise time (note10) tr si ? ? 50 ns si, cs , sclk, incoming signal fall time (note10) tf si ? ? 50 ns falling edge of rst to rising edge of rst (required setup time) (note9) tw rst ? ? 3 s rising edge of cs to falling edge of cs (required setup time) (note9) (note11) t cs ? ? 5 s rising edge of rst to falling edge of cs (required setup time) (note9) t en ? ? 5 s time from falling edge of cs to so low impedance (note12) t so(en) ? ? 145 ns time from rising edge of cs to so high impedance (note13) t so(dis) ? 1.3 4 s time from rising edge of sclk to so data valid (note14) 0.2 v dd <=so >=0.8v dd , cl = 200 pf t valid ? 65 105 ns notes: 9. the maximum setup times specified for the 33991 is the minimum time needed from the microcontroller to guarantee correct operation. 10. rise and fall time of incoming si, cs , and sclk signals suggested for design consideration to prevent the occurrence of double pulsing. 11. this value is for a 1 mhz calibrated internal clock; it will change proportionally as the i nternal clock frequency changes. 12. time required for output status data to be available for use at so. 1 k ? load on so. 13. time required for output status data to be terminated at so. 1 k ? load on so. 14. time required to obtain valid data out from so following the rise of sclk. t he device shall meet all spi interface-timing requirements specified in the spi interface timing , over the temperature range specified in the environmental requirements section. digital inte rface timing is based on a symmetrical 50 percent duty cycle sclk clock period of 333 ns. the device shall be fully functional for slower clock speeds. static electrical characteristics (characteristics noted under conditions 4.75 v < v dd < 5.25 v, -40 c < tj < 150 c, unless otherwise noted) f r e e s c a l e s e m i c o n d u c t o r , i freescale semiconductor, inc. f o r m o r e i n f o r m a t i o n o n t h i s p r o d u c t , g o t o : w w w . f r e e s c a l e . c o m n c . . .
33991 motorola analog integrated circuit device data 10 maximum rating (all voltages are with respect t o ground unless otherwise noted) rating symbol value limit power supply voltage steady state v pwr(sus) -0.3 to 41 v input pin voltage (note15) v in -0.3 to 7.0 v sin+/- cos +/- continuous per output current (note16) i outmax 40 ma storage temperature t stg -55to150 c operating junction temperature t junc -40to150 c thermal resistance (c/w) ambient junction to lead q ja q jl 60 20 c/w c/w esd voltage human body model (note17) machine model (note18) v esd1 v esd2 2000 200 v v notes: 15. exceeding voltage limits on input pins may cause permanent damage to the device. 16. output continuous output rating so long as maximum junction temperature is not exceeded. operation at 125 c ambient temperature will require maximum output current computat ion using package thermal resistances 17. v esd1 testing is performed in accordance with the human body model (czap = 100pf, rzap = 1500 ? ) 18. v esd2 testing is performed in accordance with the machine model (czap = 100pf, rzap = 0 ? ) f r e e s c a l e s e m i c o n d u c t o r , i freescale semiconductor, inc. f o r m o r e i n f o r m a t i o n o n t h i s p r o d u c t , g o t o : w w w . f r e e s c a l e . c o m n c . . .
motorola analog integrated circuit device data 33991 11 figure 2. input timing switching characteristics figure 3. valid data delay time and valid time waveforms si rstb csb sclk don?t care don?t care don?t care valid valid vih vil vih vih vih vil vil vil twrstb tlead twsclkh trsi tlag tsisu twsclkl tsi(hold) tfsi 0.7 vdd 0.2 vdd 0.7vdd 0.2vdd 0.2vdd 0.7vdd 0.7vdd tcsb tenbl cs sclk rst si v ih v il v ih v il v ih v il v ih v il so so sclk voh vol voh vol voh vol tfsi tdlylh tdlyhl tvalid trso tfso 3.5v 50% trsi high-to-low 1.0v 0.7 vdd 0.2vdd 0.2 vdd 0.7 vdd low-to-high sclk so so v oh v ol v oh v ol v oh v ol v ol f r e e s c a l e s e m i c o n d u c t o r , i freescale semiconductor, inc. f o r m o r e i n f o r m a t i o n o n t h i s p r o d u c t , g o t o : w w w . f r e e s c a l e . c o m n c . . .
33991 motorola analog integrated circuit device data 12 pc33991 spi interface and protocol description introduction the spi interface has full duplex, three wire synchronous, 16-bit serial synchronous interface data transfer and four i/o lines associated with it: (si, so, sclk, and cs ). the si/so pins of the 33991 follows a first in/first out (d15/d0) protocol with both input and output words transferring the most significant bit first. all inputs are compatible with 5.0 v cmos logic levels. detailed signal descriptions chip select (cs ) the chip select (cs ) pin enables communication with the master device. when this pin is in a logic [0] state, the gdic is capable of transferring information to, and receiving information from, the master. the 33991latches data in from the input shift registers to the addressed registers on the rising edge of cs . the output driver on the so pin is enabled when cs is logic [0]. when cs is logic high, signals at the sclk and si pins are ignored; the so pin is tri-stated (high impedance). cs will only be transitioned from a logic [1] state to a logic [0] state when sclk is a logic [0]. cs has an internal pull-up ( lup) connected to the pin as specified in the control i/o table. serial clock (sclk) sclk clocks the internal shift registers of the 33991device. the serial input (si) pin accepts data into the input shift register on the falling edge of the sclk signal while the serial output pin (so) shifts data information out of the so line driver on the rising edge of the sclk signal. it is important the sclk pin be in a logic [0] state whenever the cs makes any transition. sclk has an internal pull down ( idwn ), specified in the control i/o table. when cs is logic [1], signals at the sclk and si pins are ignored; so is tri-stated (high impedance). see the data transfer timing diagrams in s 2 and 3. serial input (si) this pin is the input of the serial peripheral interface (spi). serial input (si) information is read on the falling edge of sclk. a 16-bit stream of serial data is required on the si pin, starting with the most significant bit (msb). messages not multiples of 16 bits (e.g. daisy chained device messages) are ignored. after transmitting a 16-bit word, the cs pin has to be deasserted (logic [1]) before transmitting a new word. si information is ignoredwhencs is in a logic high state. serial output (so) the serial output (so) data pin is a tri-stateable output from the shift register. the status register bits are the first 16-bits shifted out. those bits are followed by the message bits clocked in fifo, when the device is in a daisy chain connection, or being sent words multiples of 16 bits. data is shifted on the rising edge of the sclk signal. the so pin remains in a high impedance state until the cs pin is put into a logic low state. system application information this section provides a description of the 33991device spi behavior. to follow the explanations below, please refer to the timing diagrams illustrated in figures 4 and 5. table 1. data transfer timing pin description cs (1-to-0) so pin is enabled cs (0-to-1) 33991configuration and desired output states are transferred and executed according to the data in the shift registers so will change state on the rising edge of the sclk pin signal si will accept data on the falling edge of the sclk pin signal f r e e s c a l e s e m i c o n d u c t o r , i freescale semiconductor, inc. f o r m o r e i n f o r m a t i o n o n t h i s p r o d u c t , g o t o : w w w . f r e e s c a l e . c o m n c . . .
motorola analog integrated circuit device data 33991 13 timing descriptions and diagrams figure 4. single 16-bit word spi communication figure 5. multiple 16-bit word spi communication data input the input shift register captures data at the falling edge of the sclk clock. the sclk clock pulses exactly 16 times only inside the transmission windows (cs in a logic [0] state). by the time the cs signal goes to logic [1] again, the contents of the input shift register are transferred to the appropriate internal register, according to the address contained in bits 15-13. the minimum time cs should be kept high depends on the internal clock speed. that data is specified in the spi interface timing table. it must be long enough so the internal clock is able to capture the data from the input shift register and transfer it to the internal registers. data output at the first rising edge of the sclk clock, with the cs at logic [0], the contents of the status word register are transferred to the output shift register. the first 16 bits clocked out are the status bits. if data continues to clock in before the cs transitions to a logic [1], the device begins to shift out the data previously clocked in fifo after the cs first transitioned to logic [0]. communication memory maps the 33991device is capable of interfacing directly with a microcontroller, via the 16-bit spi protocol described and specified below. the device is controlled by the microprocessor and reports back status information via the spi. this section provides a detailed description of all registers accessible via serial interface. the various registers control the behavior of this device. a message is transmitted by the master starting with the msb (d15) and ending with the lsb (d0). multiple messages can be transmitted in succession to accommodate those applications where daisy chaining is desirable, or to confirm transmitted data, as long as the messages are all multiples of 16 bits. data will transfer through daisy chained devices, illustratedinfigure5.ifanattemptismadetolatchina message smaller than 16-bits wide, it is ignored. the 33991uses six registers to con the device and control the state of the four h-bridge outputs. registers are addressed via d15-d13 of the incoming spi word. refer to table 2. internal registers are loaded sometime after this edge csb si sclk d15 d1 d2 d3 d4 d5 d6 d7 d8 d9 d14 d13 d12 d11 d10 od12 d0 od13 od14 od15 od6 od7 od8 od9 od10 od11 od1 od2 od3 od4 od5 1. so is tri-stated when csb is logic 1. notes: od0 so output shift register is loaded here sclk cs si so cs csb si sclk d15 d1* d2* d13* d14* d15* d0 d1 d14 d13 d2 d0* od13 od14 od15 d14 d15 od0 od1 od2 d1 d2 d13 1. so is tri-stated when csb is logic 1. 2. d15, d14, d13, ..., and d0 refer to the first 16 bits of data into the gdic. 3. d15*, d14*, d13*, ... , and d0* refer to the m ost recent entry of program data into the gdic. 4. od15, od14, od13, ..., and od0 refer to the first 16 bits of fault and status data out of the gdic. notes : d0 so cs cs sclk si so f r e e s c a l e s e m i c o n d u c t o r , i freescale semiconductor, inc. f o r m o r e i n f o r m a t i o n o n t h i s p r o d u c t , g o t o : w w w . f r e e s c a l e . c o m n c . . .
33991 motorola analog integrated circuit device data 14 module memory map various registers of the 33991 spi module are addressed by the three msb of the 16-bit word received serially. functions to be controlled include:  individual gauge drive enabling  power-up/down  internal clock calibration  gauge pointer position and velocity  gauge pointer zeroing status reporting includes:  individual gauge over temperature condition  battery out of range condition  pointer zeroing status  internal clock status  confirmation of coil output changes should result in pointer movement table 2 provides the register available to control the above functions. register descriptions power, enable, and calibration register (pecr) this register allows the master to independently enable or disable the output drivers of the two gauge controllers. si address 000?power, enable, and calibration register is illustrated in table 3. a write to the 33991using this register allows the master to independently enable or disable the output drivers of the two gauge controllers as well as to calibrate the internal clock, or send a null command for the purpose of reading the status bits. this register is also used to place the 33991device into a low current consumption mode. each of the gauge drivers can be enabled by writing a logic [1] to their assigned address bits, d0 and d1 respectively. this feature could be useful to disable a driver if it is failing or not being used. the device can be placed into a standby current modebywritingalogic[0]tobothd0andd1.duringthisstate, most current consuming circuits are biased off. when in the standby mode, the internal clock will remain on. the internal state machine utilizes a rom table of step times defining the duration the motor will spend at each microstep as it accelerates or decelerates to a commanded position. the accuracy of the acceleration and velocity of the motor is directly related to the accuracy of the internal clock. although the accuracy of the internal clock is temperature independent, the non-calibrated tolerance is +70 percent to -35 percent. the 33991 device was designed with a feature allowing the internal clock to be software calibrated to a tighter tolerance of 10 percent, using the cs pin and a reference time pulse provided by the microcontroller. calibration of the internal clock is initiated by writing a logic [1] to d3. the calibration pulse, must be 8 s for an internal clock speed of 1 mhz, will be sent on the cs pin immediately after the spi word is sent. no other spi lines will be toggled. a clock calibration is allowed only if the gauges are disabled or the pointers are not moving, indicated by status bits st4 and st5. some applications may require a guaranteed maximum pointer velocity and acceleration. guaranteeing these maximums require the nominal internal clock frequency fall below 1 mhz. the frequency range of the calibrated clock is always below 1 mhz if bit d4 is logic [0] when initiating a calibration command followed by an 8 s reference pulse. the frequency is centered at 1mhz if bit d4 is logic [1]. some applications may require a slower calibrated clock due to a lower motor gear reduction ratio. writing a logic [1] to bit d2 will slow the internal oscillator by one-third, leading to a situation where it is possible to calibrate at maximum 667 khz or centered at 667 khz. in these cases, it may be necessary to provide a longer calibration pulse of exactly 12 s without any indication of a calibration fault at status bit st7. the preceding description should be the case for 1 mhz if d2 is left logic [0]. if bit d12 is logic [1] during a pecr command, the state of d11: d0 is ignored. this is referred to as the null command and can be used to read device status without affecting device operation. table 2. module memory map address [15:13] use name 000 power, enable, and calibration register pecr 001 maximum velocity register velr 010 gauge 0 position register pos0r 011 gauge 1 position register pos1r 100 return to zero register rtzr 101 return to zero configuration register rtzcr 110 not used 111 reserved for test f r e e s c a l e s e m i c o n d u c t o r , i freescale semiconductor, inc. f o r m o r e i n f o r m a t i o n o n t h i s p r o d u c t , g o t o : w w w . f r e e s c a l e . c o m n c . . .
motorola analog integrated circuit device data 33991 15 these bits are write-only . pe12?null command for status read  0 = disable  1 = enable pe11?pe5?these bits must be transmitted as logic [0] for valid pecr commands. pe4?clock calibration frequency selector  0 = maximum f = 1 mhz (for 8 s calibration pulse)  1 = nominal f = 1 mhz (for 8 s calibration pulse) pe3?clock calibration enable?this bit enables or disables the clock calibration.  0 = disable  1 = enable pe2?oscillator adjustment 0=tosc 1=0.66xtosc pe1?gauge 1 enable?this bit enables or disables the output driver of gauge 1.  0 = disable  1= enable pe0?gauge 0 enable?this bit enables or disables the output driver of gauge 0.  0 = disable  1 = enable maximum velocity register (velr) si address 001?gauge maximum velocity register, is used to set a maximum velocity for each gauge. see table 4. bits d7-d0 contain a position value from 1-255 representative of the table position value. the table value becomes the maximum velocity until it is changed to another value. if a maximum value is chosen greater than the maximum velocity in the acceleration table, the maximum table value will become the maximum velocity. if the motor is turning at a value greater than the new maximum, the motor will ignore the new value until the speed falls equal to, or below it. velocity for each motor can be changed simultaneously, or independently, by writing d8 and/or d9 to a logic [1]. bits d10 ?d12 must be at logic [0] for valid velr commands. these bits are write-only . v12?v10?these bits must be transmitted as logic [0] for valid velr commands. v9?gauge 1 velocity?specifies whether the maximum velocity determined in the v7-v0 field applies to gauge 1  0 = velocity does not apply to gauge 1  1 = velocity applies to gauge 1 v8?gauge 0 velocity?specifies whether the maximum velocity specified in the v7-v0 field applies to gauge 0  0 = velocity does not apply to gauge 0  1 = velocity applies to gauge 0 v7?v0 maximum velocity?specifies the maximum velocity position from the acceleration table. this velocity will remain the maximum of the intended gauge until changed by command. velocities can range from position 1 (00000001) to position 255 (11111111). gauge 0/1 position register (pos0r, pos1r) si addresses 010?gauge 0 position register receives writing when communicating the desired pointer positions. si address 011?gauge 1 position register receives writing when communicating the desired pointer positions. register bits d11?d0 receives writing when communicating the desired pointer positions. commanded positions can range from 0 to 4095. the d12 bit must be at logic [0] for valid pos0r and pos1r commands. table 3. power, enable and calibration register (pecr) address 000 d12 d11 d10 d9 d8 d7 d6 d5 d4 d3 d2 d1 d0 write pe12 0 0 0 0 0 0 0 pe4 pe3 pe2 pe1 pe0 table 4. maximum velocity register (velr) address 001 d12 d11 d10 d9 d8 d7 d6 d5 d4 d3 d2 d1 d0 write 0 0 0 v9 v8 v7 v6 v5 v4 v3 v2 v1 v0 f r e e s c a l e s e m i c o n d u c t o r , i freescale semiconductor, inc. f o r m o r e i n f o r m a t i o n o n t h i s p r o d u c t , g o t o : w w w . f r e e s c a l e . c o m n c . . .
33991 motorola analog integrated circuit device data 16 these bits are write-only . p012?this bit must be transmitted as logic [0] for valid commands. p011?p0 0 desired pointer position of gauge 0. pointer positions can range from 0 (000000000000) to position 4095 (111111111111). for a stepper motor requiring 12 microsteps per degree of pointer movement, the maximum pointer sweep is 341.25 . these bits are write-only . p012?this bit must be transmitted as logic [0] for valid commands. p011?p0 0 desired pointer position of gauge 1. pointer positions can range from 0 (000000000000) to position 4095 (111111111111). for a stepper motor requiring 12 microsteps per degree of pointer movement, the maximum pointer sweep is 341.25 . gauge return to zero register (rtzr) si address 100?gauge return to zero register (rtzr), provided in table 7, is written to return the gauge pointers to the zero position. during an rtz event, the pointer is returned to zero, using full steps where only one coil is driven at any point in time. the back electromotive force (emf) signal present on the non-driven coil is integrated, its results stored in an accumulator. contents of this register?s 15-bit rtz accumulator canbereadeightbitsatatime. a logic [1] written to bit d1 enables a return to zero for gauge 0whend0islogic[0],andgauge1whend0is1,respectively. similarly,alogic[0]writtentobitd1disablesareturntozerofor gauge 0 when d0 is logic [0], and gauge 1 when d0 is 1, respectively. bits d3 and d2 are used to determine which eight bits of the 15-bit rtz accumulator are clocked out of the so register as the 8 msbs of the so word. see table 12. this feature provides the flexibility to look at 15 bits of content with eight bits of the so word. this 8-bit window can be dynamically changed whileinthertzmode. a logic [00], written to bits d3:d2, results in the rtz accumulator bits 7:0 clocked out as so bits d15:d8, respectively. similarly, a logic [01] results in rtz counter bits 11:4 clocked out, and logic [10] delivers counter bits 14:8 as so bits d14:d8, respectively. a logic [11] clocks out the same information as logic [10]. this feature allows the master to monitor the rtz information regardless the size of the signal. further, this feature is very useful during the determination of the accumulator offset to be loaded in for a motor and pointer combination. it should be noted, rtz accumulator contents will reflect the data from the previous step. the first accumulator results to be read back during the first step will be 1111111111111111. bits d12:d5 must be at logic [0] for valid rtzr commands. bit d4 is used to enable an unconditional rtz event. a logic [0] results in a typical rtz event automatically stopping when a stall condition is detected. a logic [1] results in rtz movement, stopping only if a logic [0] is written to bit d0. this feature is useful during development and characterization of rtz requirements. the register bits in table 7 are write-only . table 5. gauge 0 position register (pos0r) address 010 d12 d11 d10 d9 d8 d7 d6 d5 d4 d3 d2 d1 d0 write 0 p011 p010 p09 p08 p07 p06 p05 p04 p03 p02 p01 p00 table 6. gauge 1 position register (pos1r) address 011 d12 d11 d10 d9 d8 d7 d6 d5 d4 d3 d2 d1 d0 write 0 p011 p010 p09 p08 p07 p06 p05 p04 p03 p02 p01 p00 table 7. return to zero register (rtzr) address 100 d12 d11 d10 d9 d8 d7 d6 d5 d4 d3 d2 d1 d0 write 0 0 0 0 0 0 0 0 rz4 rz3 rz2 rz1 rz0 f r e e s c a l e s e m i c o n d u c t o r , i freescale semiconductor, inc. f o r m o r e i n f o r m a t i o n o n t h i s p r o d u c t , g o t o : w w w . f r e e s c a l e . c o m n c . . .
motorola analog integrated circuit device data 33991 17 rz12?rz5?these bits must be transmitted as logic [0] for valid commands. rz4?this bit is used to enable an unconditional rtz event.  0 = automatic return to zero  1 = unconditional return to zero rz3?rz2?these bits are used to determine which eight bits of the rtz accumulator will be clocked out via the so pin. see table 8. rz1?return to zero?commands the selected gauge to return the pointer to zero position.  1 = return to zero enabled  0 = return to zero disabled rz0?gauge select: gauge 0/gauge 1?selects the gauge to be commanded.  0 = selects gauge 0  1 = selects gauge 1 gauge return to zero configuration register si address 101?gauge return to zero configuration register (rtzcr) is used to con the return to zero event. see table 9. it is written to modify the step time, or rate, the pointer moves during an rtz event. also, the integration blanking time is adjustable with this command. integration blanking time is the time immediately following the transition of a coil from a driven state to an open state in the rtz mode. finally, this command is used to adjust the threshold of the rtz integration register. the values used for this register are chosen during development to optimize the rtz for each application. various resonance frequencies can occur due to the interaction between the motor and the pointer. this command permits moving the rtz pointer speed away from these frequencies. bits d3:d0 determine the time spent at each full step during an rtz event. the step time associated with each bit combination is illustrated in table 10. the default full step time is 21.25 ms (0101). if there are 2 full steps per degree of pointer movement, the pointer speed is: 1/(fs 2) degrees. bit d4 determines the provided blanking time immediately following a full step change, and before enabling the integration of the non-driven coil signal. the blanking time is either 512 s, when d4 is logic [0], or 768 s when d4 is logic [1]. detecting pointer movement is accomplished by integrating the back emf present in the non-driven coil during the rtz event. the integration circuitry is implemented using a sigma- delta converter resulting in a representative value in the 15-bit rtz accumulator at the end of each full step. the value in the rtz accumulator represents the change in flux and is compared to a threshold. values above the threshold indicate a moving pointer. values below the threshold indicate a stalled pointer, thereby resulting in the cessation of the rtz event. the rtz accumulator bits are signed and represented in two?s complement. if the rtzr d3:d2 bits were written as 10 or 11, the st14 bit corresponds to bit d14 of the rtz accumulator, the sign bit. after a full step of integration, a sign bit of 0 is the indicator of an accumulator exceeding the decision threshold of 0, and the pointer is assumed to still be moving. similarly, if the sign bit is logic [1] after a full step of integration, the accumulator value is negative and the pointer is assumed to be stopped. the integrator and accumulator are initialized after each full step. accurate pointer stall detection depends on a correctly preloaded accumulator for specific gauge, pointer, and full step combinations. bits d12:d5 are used to offset the initial rtz accumulator value, properly detecting a stalled motor. the initial accumulator value at the start of a full step of integration is negative. if the accumulator was correctly preloaded, a free moving pointer will result in a positive value at the end of the integration time. a stalled pointer results in a negative value. the preloaded values associated with each combination of bits d12:d5 are illustrated in table 11. the accumulator should be loaded with a negative value resulting in a transition of the accumulator msb to a logic [1] when the motor is stalled. after a power-up, or any reset in the default mode, the 33991device sets the accumulator value to -1, resulting in an unconditional rtz pointer movement. these bits are write-only . rc12?rc5?these bits (d12:d5) determine the preloaded value into the rtz integration accumulator to adjust the detection threshold. values range from -1 (00000000) to -4081 (11111111)provided in table 11. rc4?this bit determines the rtz blanking time 0=512s 1=768s rc3?rc0?these bits (d3:d0) determine the full step time during an rtz event, determining the pointer moving rate. step times range from 4.86 ms (0000) to 62.21 ms (1111). those are illustrated in table 10. the default time is 21.25 ms (0101). table 8. rtz accumulator bit select d3 d2 rtz accumulator bits to so bits st15:st8 0 0 [7:0] 0 1 [11:4] 1 0 [14:8] 1 1 [14:8] table 9. rtzcr si register assignment address 101 d12 d11 d10 d9 d8 d7 d6 d5 d4 d3 d2 d1 d0 write rc12 rc11 rc10 rc9 rc8 rc7 rc6 rc5 rc4 rc3 rc2 rc1 rc0 f r e e s c a l e s e m i c o n d u c t o r , i freescale semiconductor, inc. f o r m o r e i n f o r m a t i o n o n t h i s p r o d u c t , g o t o : w w w . f r e e s c a l e . c o m n c . . .
33991 motorola analog integrated circuit device data 18 table 10. rtzcr full step time rc3 rc2 rc1 rc0 full step time (ms) 0 0 0 0 4.86 0 0 0 1 4.86 0 0 1 0 8.96 0 0 1 1 13.06 0 1 0 0 17.15 0 1 0 1 21.25 0 1 1 0 25.34 0 1 1 1 29.44 1 0 0 0 33.54 1 0 0 1 37.63 1 0 1 0 41.73 1 0 1 1 45.82 1 1 0 0 49.92 1 1 0 1 54.02 1 1 1 0 58.11 1 1 1 1 62.21 table 11. rtzcr accumulator offset rc 12 rc 11 rc 10 rc 9 rc 8 rc 7 rc 6 rc 5 preload value (pv) initial accumulator value = (- 16 pv)-1 0 0 0 0 0 0 0 0 0 -1 0 0 0 0 0 0 0 1 1 -17 0 0 0 0 0 0 1 0 2 -33 0 0 0 0 0 0 1 1 3 -49 0 0 0 0 0 1 0 0 4 -65 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 1 1 1 1 1 1 1 1 255 -4081 f r e e s c a l e s e m i c o n d u c t o r , i freescale semiconductor, inc. f o r m o r e i n f o r m a t i o n o n t h i s p r o d u c t , g o t o : w w w . f r e e s c a l e . c o m n c . . .
motorola analog integrated circuit device data 33991 19 so communication when the cs pin is pulled low, the internal status word register is loaded into the output register and the fault data is clocked out msb (od15) first. following a cs transition0to1, the device determines if the message shift was a valid length and if so, latches the data into the appropriate registers. a valid message length is greater than 0 bits and a multiple of 16 bits. at this time, the so pin is tri-stated and the fault status register is now able to accept new fault status information. if the message length is determined to be invalid, the status information is not cleared. it is transmitted again during the next spi message. any bits clocked out of the so pin after the first sixteen, is representative of the initial message bits clocked into the si pin. that is due to the cs pin first being transitioned to a logic [0]. this feature is useful for daisy chaining devices as well as message verification. these are read-only bits. st15?st8?bits representing the eight bits from the rtz accumulator as determined by the status of bits rz2 and rz3 of the rtzr, defined in table 8. these bits represent the integrated signal present on the non-driven coil during an rtz event. these bits will be logic [0] after power-on reset, or after the rst pin transitions from logic [0] to [1]. after an rtz event, they will represent the last rtz accumulator result before the rtz was stopped. st7?calibrated clock out of specification?a logic [1] on this bit indicates the clock count calibrated to a value outside of the expected range, and given the tolerance specified by t clc in the spi interface timing table .  0 = clock with in spec  1=clockoutofspec st6?under voltage or over voltage indication?a logic [1] on this bit indicates the v pwr voltage fell to a level below the v pwruv , or it exceeded an upper limit of v pwrov , as specified in the static electrical characteristics table, since the last spi communication. an under voltage event is just flagged, while an over voltage event automatically disables the driver outputs. because the pointer may not be in the expected position, the master may want to re-calibrate the pointer position with a rtz command after the voltage returns to a normal level. for an over voltage event, both gauges must be re-enabled as soon as this flag returns to logic [0]. the state machine continues to operate properly as long as v dd is within the normal range.  0 = normal range  1 = battery voltage fell below v pwruv , or exceeded v pwrov st5?gauge 1?movement since last spi communication. a logic [1] on this bit indicates the gauge 1 pointer position has changed since the last spi command. this allows the master to confirm the pointer is moving as commanded.  0 = gauge 1 position has not changed since the last spi command  1 = gauge 1 pointer position has changed since the last spi command st4?gauge 0?movement since last spi communication. a logic [1] on this bit indicates the gauge 0 pointer position has changed since the last spi command. the master confirms the pointer is moving as commanded.  0 = gauge 0 position has not changed since the last spi command  1 = gauge 0 pointer position has changed since the last spi command st3?rtz1?enabled successful or disabled. a logic [1] on this bit indicates gauge 1 is in the process of returning to the zero position as requested with the rtz command. this bit continues to indicate a logic [1] until the spi message following a detection of the zero position, or the rtz feature is commanded off using the rtz message.  0 = return to zero disabled  1 = return to zero enabled successful st2?rtz0?enabled successful or disabled. a logic [1] on this bit indicates gauge 0 is in the process of returning to the zero position as requested with the rtz command. this bit continues indicating a logic [1] until the spi message following a detection of the zero position, or the rtz feature is commanded off, using the rtz message.  0 = return to zero disabled  1 = return to zero enabled successful st1?gauge 1?junction over temperature. a logic [1] on this bit indicates coil drive circuitry dedicated to drive gauge 1 has exceeded the maximum allowable junction temperature since the last spi communication. additionally, the same indication signals the circuitry gauge 1 is disabled. it is recommended the pointerbere-calibratedusingthertzcommandafterre- enabling the gauge using the pecr command. this bit remains logic [1] until the gauge is enabled.  0 = temperature within range  1 = gauge 1 maximum allowable junction temperature condition has been reached table 12. status output register od15 od14 od13 od12 od11 od10 od9 od8 od7 od6 od5 od4 od3 od2 od1 od0 read st15 st14 st13 st12 st11 st10 st9 st8 st7 st6 st5 st4 st3 st2 st1 st0 f r e e s c a l e s e m i c o n d u c t o r , i freescale semiconductor, inc. f o r m o r e i n f o r m a t i o n o n t h i s p r o d u c t , g o t o : w w w . f r e e s c a l e . c o m n c . . .
33991 motorola analog integrated circuit device data 20 st0?gauge 0?junction over temperature. a logic [1] on this bit indicates coil drive circuitry dedicated to drive gauge 0 has exceeded the maximum allowable junction temperature since the last spi communication. additionally, the same indication signals the circuitry gauge 0 is disabled. it is recommended the pointer be re-calibrated using the rtz command after re- enabling the gauge, using the pecr command. this bit remains logic [1] until the gauge is re-enabled.  0 = temperature within range  1 = gauge 0 maximum allowable junction temperature condition has been reached device functional description state machine operation the two-phase stepper motor is defined as maximum velocity and acceleration, and deceleration. it is the purpose of the stepper motor state machine to drive the motor with maximum performance while remaining within the motor?s velocity and acceleration constraints. when commanded, the motor should accelerate constantly to its maximum velocity then decelerate and stop at the desired position. during the deceleration phase, the motor should not exceed the maximum deceleration. a required function of the state machine is to ensure the deceleration phase begins at the correct time, or position. during normal operation, both stepper motor rotors are microstepped with 24 steps per electrical revolution. see figure 6. a complete electrical revolution results in 2 degrees of pointer movement. there is a second, and smaller state, machineintheiccontrollingthesemicrosteps.thisstate machine receives clockwise or counter-clockwise index commands at intervals, stepping the motor in the appropriate direction by adjusting the current in each coil. normalized values can be seen in table 13. f r e e s c a l e s e m i c o n d u c t o r , i freescale semiconductor, inc. f o r m o r e i n f o r m a t i o n o n t h i s p r o d u c t , g o t o : w w w . f r e e s c a l e . c o m n c . . .
motorola analog integrated circuit device data 33991 21 figure 6. microstepping 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 21 20 19 18 17 16 22 23 0 1 2 3 4 5 6 7 8 10 11 12 13 14 15 16 17 18 9 23 22 21 20 19 + _ _ + cosine sine i max i max i max i max i coil i coil 0 0 figure 5-1 microstepping (cw) f r e e s c a l e s e m i c o n d u c t o r , i freescale semiconductor, inc. f o r m o r e i n f o r m a t i o n o n t h i s p r o d u c t , g o t o : w w w . f r e e s c a l e . c o m n c . . .
33991 motorola analog integrated circuit device data 22 the motor is stepped by providing index commands at intervals. the time between steps defines the motor velocity, and the changing time defines the motor acceleration. the state machine uses a table defining the allowed time steps, including the maximum velocity. a useful side effect of the table is, it also allows the direct determination of the position the velocity should reduce to allow the motor to stop at the desired position. the motor equations of motion are generated as follows: the units of position are steps, and velocity and acceleration are in steps/second, and steps/second2. from an initial position of 0, with an initial velocity u ,the motor position, s at a time t is: for unit steps, the time between steps is: this defines the time increment between steps when the motor is initially travelling at a velocity . in the rom, this time is quantized to multiples of the system clock by rounding upwards, ensuring the acceleration never exceeds the allowed value. the actual velocity and acceleration is calculated from the time step actually used. using and table 13. coil step value step# angle sine angle* sine current flow 8-bit value (dec) 8-bit value (hex) cos angle* cos current flow 8-bit value (dec) 8-bit value (hex) 0 0 0 + 0 0 1 + 255 ff 1 15 0.259 + 66 42 0.965 + 247 f7 2 30 0.5 + 128 80 0.866 + 222 de 3 45 0.707 + 181 b5 0.707 + 181 b5 4 60 0.866 + 222 de 0.5 + 128 80 5 75 0.966 + 247 f7 0.259 + 66 42 6 90 1 + 255 ff 0 + 0 0 7 105 0.966 + 247 f7 -0.259 - 66 42 8 120 0.866 + 222 de -0.5 - 128 80 9 135 0.707 + 181 b5 -0.707 - 181 b5 10 150 0.5 + 128 80 -0.866 - 222 de 11 165 0.259 + 66 42 -0.966 - 247 f7 12 180 0 + 0 0 -1 - 255 ff 13 195 -0.259 - 66 42 -0.966 - 247 f7 14 210 -0.5 - 128 80 -0.867 - 222 de 15 225 -0.707 - 181 b5 -0.707 - 181 b5 16 240 -0.866 - 222 de -0.5 - 128 80 17 255 -0.966 - 247 f7 -0.259 - 66 42 18 270 -1 - 255 ff 0 + 0 0 19 285 -0.966 - 247 f7 0.259 + 66 42 20 300 -0.866 - 222 de 0.5 + 128 80 21 315 -0.707 - 181 b5 0.707 + 181 b5 22 330 -0.5 - 128 80 0.866 + 222 de 23 345 -0.259 - 66 42 0.966 + 247 f7 notes: * denotes normalized values. 2 2 1 at ut s + = a a u u t 2 2 + + ? = ? a s u v 2 2 2 + = a t u v + = f r e e s c a l e s e m i c o n d u c t o r , i freescale semiconductor, inc. f o r m o r e i n f o r m a t i o n o n t h i s p r o d u c t , g o t o : w w w . f r e e s c a l e . c o m n c . . .
motorola analog integrated circuit device data 33991 23 and solving for v in terms of u , s and t gives: thecorrectvalueof t to use in this equation is the quantized value obtained above. from these equations, a set of recursive equations can be generated to give the allowed time step between motor indexes when the motor is accelerating from a stop to its maximum velocity. starting from a position p of 0, and a velocity v of 0, these equations define the time interval between steps at each position. to drive the motor at maximum performance, index commands are given to the motor at these intervals. a table is generated giving the time step ? t at an index position n . , where indicates rounding up. note: p n =n this means: on the n th step, the motor has indexed by n positions, and has been accelerating steadily at the maximum allowed rate. this is critical because, it also indicates the minimum distance the motor must travel while decelerating to a stop. in other words, the stopping distance is also equal to the current value of n . the algorithm to drive the motor is similar to:  while the motor is stopped, wait until a command is received.  send index pulses to the motor at an ever-increasing rate, according to the time steps in the table above until:  the maximum velocity is reached, at this point the time intervals stop decreasing or,  the distance remaining to travel is less than the current index in the table. at this point, the stopping distance is equal to the remaining distance, ensuring it will stop at the required position, the motor must begin decelerating. an example of the table for a particular motor is provided in table 14. this motor?s maximum speed is 4800 microsteps/s (at 12 microsteps/degree), and its maximum acceleration is 54000 microsteps/s2. the table is quantized to a 1 mhz clock. u t v ? = 2 0 0 0 0 = = v p ? ? ? ? ? ? ? ? + + ? = ? ? ? a a v v t n n n 2 2 1 1 ?? 1 2 ? ? ? = n n n v t v n p n = table 14. velocity ramp velocity position time between steps ( s) velocity ( steps/s) velocity position time between steps ( s) velocity ( steps/s) velocity position time between steps ( s) velocity ( steps/s) 0 0 0.00 72 363 2771.81 144 255 3931.78 1 16383 122.08 73 360 2791.22 145 255 3945.49 2 6086 350.58 74 358 2810.50 146 254 3959.15 3 2521 480.52 75 355 2829.65 147 253 3972.77 4 1935 582.15 76 353 2848.67 148 252 3986.34 5 1631 668.51 77 351 2867.56 149 251 3999.86 6 1437 744.92 78 348 2886.33 150 250 4013.34 7 1299 814.19 79 346 2904.98 151 249 4026.77 8 1195 878.01 80 344 2923.51 152 249 4040.16 9 1112 937.50 81 342 2941.92 153 248 4053.51 10 1045 993.43 82 340 2960.22 154 247 4066.81 11 988 1046.38 83 338 2978.41 155 246 4080.06 12 940 1096.77 84 336 2996.48 156 245 4093.28 13 898 1144.95 85 334 3014.45 157 245 4106.45 14 861 1191.18 86 332 3032.31 158 244 4119.58 f r e e s c a l e s e m i c o n d u c t o r , i freescale semiconductor, inc. f o r m o r e i n f o r m a t i o n o n t h i s p r o d u c t , g o t o : w w w . f r e e s c a l e . c o m n c . . .
33991 motorola analog integrated circuit device data 24 15 829 1235.68 87 330 3050.07 159 243 4132.66 16 800 1278.63 88 328 3067.72 160 242 4145.71 17 773 1320.19 89 326 3085.27 161 241 4158.71 18 750 1360.48 90 324 3102.73 162 241 4171.68 19 728 1399.61 91 322 3120.08 163 240 4184.60 20 708 1437.67 92 320 3137.34 164 239 4197.49 21 690 1474.76 93 319 3154.51 165 238 4210.33 22 673 1510.93 94 317 3171.58 166 238 4223.14 23 657 1546.25 95 315 3188.56 167 237 4235.91 24 642 1580.79 96 314 3205.45 168 236 4248.64 25 628 1614.59 97 312 3222.25 169 236 4261.33 26 615 1647.70 98 310 3238.97 170 235 4273.98 27 603 1680.15 99 309 3255.60 171 234 4286.60 28 592 1711.99 100 307 3272.14 172 234 4299.17 29 581 1743.24 101 306 3288.60 173 233 4311.72 30 571 1773.95 102 304 3304.98 174 232 4324.22 31 561 1804.13 103 303 3321.28 175 232 4336.69 32 552 1833.82 104 301 3337.50 176 231 4349.13 33 543 1863.04 105 300 3353.64 177 230 4361.53 34 534 1891.80 106 298 3369.70 178 230 4373.89 35 526 1920.13 107 297 3385.69 179 229 4386.22 36 519 1948.05 108 295 3401.60 180 228 4398.51 37 511 1975.58 109 294 3417.44 181 228 4410.77 38 504 2002.72 110 293 3433.21 182 227 4423.00 39 497 2029.51 111 291 3448.90 183 226 4435.19 40 491 2055.94 112 290 3464.52 184 226 4447.35 41 485 2082.04 113 289 3480.07 185 225 4459.47 42 479 2107.82 114 287 3495.55 186 225 4471.57 43 473 2133.28 115 286 3510.97 187 224 4483.63 44 467 2158.45 116 285 3526.32 188 223 4495.65 45 462 2183.32 117 284 3541.60 189 223 4507.65 46 457 2207.92 118 282 3556.81 190 222 4519.61 47 452 2232.24 119 281 3571.96 191 222 4531.55 table 14. velocity ramp velocity position time between steps ( s) velocity ( steps/s) velocity position time between steps ( s) velocity ( steps/s) velocity position time between steps ( s) velocity ( steps/s) f r e e s c a l e s e m i c o n d u c t o r , i freescale semiconductor, inc. f o r m o r e i n f o r m a t i o n o n t h i s p r o d u c t , g o t o : w w w . f r e e s c a l e . c o m n c . . .
motorola analog integrated circuit device data 33991 25 internal clock calibration timing related functions on the 33991 device (e.g., pointer velocities, acceleration and return to zero pointer speeds) depend upon a precise, consistent time reference to control the pointer accurately and reliably. generating accurate time references on an integrated circuit can be accomplished; however, they tend to be costly due to the large amount of die area required for trim pads and the associated trim procedure. one possibility to reduce cost is an externally generated clock signal. an external generated clock requires a dedicated pin on the device and on the controller. another inexpensive approach would be to require the use of an additional crystal or resonator. the internal clock in the 33991 is temperature independent and area efficient; however, it can vary by as much as + 70 percent to - 35 percent due to process variation. using the existing spi inputs and the precision timing reference already available to the controller, the 33991allows clock calibration to within 10 percent. calibrating the internal 1 mhz clock is initiated by writing a logic [1] to pecr bit d3. see figure 7. the 8 s calibration pulse is provided by the controller. it is ideally results in an internal 33991 clock speed of 1 mhz. the pulse is sent on the cs pin immediately after the spi word is launched. no other spi lines must be toggled. at the moment the cs pin transitions from logic [1] to [0], an internal 7-bit counter counts the number of cycles of an internal, non-calibrated, and temperature independent, 8 mhz clock. the counter stops when the cs pin transitions from logic [0] to logic [1]. the value in the counter represents the number of cycles of the 8 mhz clock occurring in the 8 s window; it should range from 32 to 119. an offset is added to this number to help center or skew the calibrated result to generate a desired maximum or nominal frequency. the modified counter value is truncated by four bits, generating the calibration divisor, ranging from four to 15. the 8 mhz clock is divided by the calibration divisor, resulting in a calibrated 1 mhz clock. if the calibration divisor lies outside the range of four to 15, then the 33991 device flags the st7 bit, indicating the 48 447 2256.30 120 280 3587.05 192 221 4543.45 49 442 2280.11 121 279 3602.07 193 220 4555.32 50 437 2303.67 122 278 3617.03 194 220 4567.15 51 433 2326.99 123 277 3631.93 195 219 4578.96 52 429 2350.09 124 275 3646.77 196 219 4590.74 53 425 2372.95 125 274 3661.54 197 218 4602.49 54 420 2395.60 126 273 3676.26 198 218 4614.21 55 417 2418.04 127 272 3690.92 199 217 4625.89 56 413 2440.27 128 271 3705.52 200 216 4637.55 57 409 2462.30 129 270 3720.07 201 216 4649.18 58 405 2484.13 130 269 3734.56 202 215 4660.78 59 402 2505.77 131 268 3748.99 203 215 4672.36 60 398 2527.23 132 267 3763.36 204 214 4683.90 61 395 2548.51 133 266 3777.68 205 214 4695.41 62 392 2569.61 134 265 3791.95 206 213 4706.90 63 389 2590.54 135 264 3806.17 207 213 4718.36 64 385 2611.30 136 263 3820.33 208 212 4729.79 65 382 2631.90 137 262 3834.44 209 212 4741.19 66 379 2652.34 138 261 3848.49 210 211 4752.57 67 376 2672.62 139 260 3862.50 211 211 4763.92 68 374 2692.75 140 259 3876.45 212 210 4775.24 69 371 2712.73 141 258 3890.36 213 210 4786.53 70 368 2732.56 142 257 3904.22 214 209 4797.80 71 366 2752.25 143 256 3918.02 215 209 4800.00 table 14. velocity ramp velocity position time between steps ( s) velocity ( steps/s) velocity position time between steps ( s) velocity ( steps/s) velocity position time between steps ( s) velocity ( steps/s) f r e e s c a l e s e m i c o n d u c t o r , i freescale semiconductor, inc. f o r m o r e i n f o r m a t i o n o n t h i s p r o d u c t , g o t o : w w w . f r e e s c a l e . c o m n c . . .
33991 motorola analog integrated circuit device data 26 calibration procedure was not successful. a clock calibration is allowed only if the gauges are disabled or the pointers are not moving, indicated by status bits st4 and st5. figure 7. gauge enable and clock calibration example some applications may require a guaranteed maximum pointer velocity and acceleration. guaranteeing these maximums requires the nominal internal clock frequency fall below 1 mhz. the frequency range of the calibrated clock is always below 1 mhz if pecr bit d4 is logic [0] when initiating a calibration command, followed by an 8 s reference pulse. the frequency is centered at 1 mhz if bit d4 is logic [1]. the 33991 can be deceived into calibrating faster or slower than the optimal frequency by sending a calibration pulse longer or shorter than the intended 8 s. as long as the count remains between four and 15 there is no clock calibration flag. for applications requiring a slower calibrated clock, i.e., a motor designed with a gear ratio of 120:1 (8 microsteps/degrees), a longer calibration pulse is required. the device allows a spi selectable slowing of the internal oscillator, using the pecr command so the calibration divisor safely falls within the four to 15 range when calibrating with a longer time reference. for example, for the 120:1 motor the pulse would be 12 s instead of 8 s. the result of this slower calibration results in the longer step times necessary to generate pointer movements meetingthe acceleration and velocity requirements. the resolution of the pointer positioning decreases from 0.083 / microstep (180:1) to 0.125 /microstep (120:1). the pointer sweep range increases from approximately 340 to over 500 . note: be aware a fast calibration could result in violations of the motor acceleration and velocity maximums, resulting in missed steps. pointer deceleration waveshaping constant acceleration and deceleration of the pointer results in choppy movements when compared to air core movements. air core behavior can be simulated with appropriate wave shaping during deceleration only. this shaping is achieved by adding repetitive steps at several of the last step values. an example is illustrated in figure 8. figure 8. deceleration waveshaping si sclk csb pecr command 8us calibration pulse d15 d0 figure 5-2 gauge enable & clock calibration example si sclk cs 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 d e holdcnt= 6 4 3 3 3 2 2 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 n = velocity a c c elerate c e l e r a t e steps f r e e s c a l e s e m i c o n d u c t o r , i freescale semiconductor, inc. f o r m o r e i n f o r m a t i o n o n t h i s p r o d u c t , g o t o : w w w . f r e e s c a l e . c o m n c . . .
motorola analog integrated circuit device data 33991 27 return to zero calibration many stepper motor applications require the integrated circuit (ic) detect when the motor is stalled after commanded to return to the zero position for calibration purposes. stalling occurs when the pointer hits the end stop on the gauge bezel, usually at the zero position. it is important when the pointer reaches the end stop it immediately stops without bouncing away from the stop. the 33991device provides the ability to automatically and independently return each of the two pointers to the zero position via the rtzr and rtzcr spi commands. during an rtz event, all commands related to the gauge being returned are ignored, except when the rtzr bit d1 is used to disable the event, or when the rtzr bits d3 and d2 are changed in order to look at different rtz accumulator bits. once an rtz event is initiated, the device will report back via the so pin, indicating an rtz is underway. the rtzcr command is used to set the rtz pointer speed, choose an appropriate blanking time and preload the integration accumulator with an appropriate offset. reaching the end stop, the device reports the rtz success to the microcontroller via the so pin. the rtz automatically disables allowing other commands to be valid. in the event the master determines an rtz sequence is not working properly, for example the rtz taking too long, it can disable the command via the rtzr bit d1. rtzcr bits d12:d5 are written to preload the accumulator with a predetermined value assuring an accurate pointer stall detection. this preloaded value is determined during application development by disabling the automatic shutdown feature of the device with the rtzr bit d4. this operating mode allows the master to monitor the rtz event using the accumulator information available in the so status bits d15:d8. once the optimal value is determined, the rtz event can be turned off using the rtzr bit d1. during an rtz event, the pointer is returned counter-clock- wise (ccw) using full steps at a constant speed determined by the rtzcr d3:d0 bits during rtz configuration. see figure 9. full steps are used because only one coil of the motor is being driven at any time. the coil not being driven is used to determine whether the pointer is moving. if the pointer is moving, a back emf signal can be processed and detected in the non-driven coil. this is achieved by integrating the signal present on an opened end of the non-driven coil while grounding the opposite end. the ic automatically prepares the non-driven coil at each step, waits for a predetermined blanking time, then processes the signal for the duration of the full step. when the pointer reaches the stop and no longer moves, the dissipating back emf is detected. the processed results are placed in the rtz accumulator, then compared to a decision threshold. if the signal exceeds the decision threshold, the pointer is assumed to be moving. when the threshold value is not exceeded, the drive sequence is stopped when rtzr bit d4 is logic [0]. if bit d4 is logic [1], the rtz movement will continue indefinitely until the rtzr bit d1 is used to stop the rtz event. a pointer not on a full step location, or in magnetic alignment prior to the rtz event, may result in a false rtz detection. more specifically, an rtz event beginning from a non-full step position may result in an abbreviated integration, interpreted as a stalled pointer. similarly, if the magnetic fields of the energized coils and the rotor are not aligned prior to initiating the rtz, the integration results may mistakenly indicate the pointer has stopped moving. advancing the pointer by at least 24 microsteps clock-wise (cw) to the nearest full step position, e.g., 24,30, 36, 42, 48 ...prior to initiating an rtz, ensures the magnetic fields are aligned. doing that increases the chances of a successful pointer stall detection. it is important the pointer be in a static, or commanded position before starting the rtz event. since the time duration and the number of steps the pointer moves prior to reaching the commanded position can vary depending on its status at the time a position change is communicated, the master should assure sufficient time has elapsed prior to starting an rtz. if an rtz is desired after first enabling the outputs, or after forcing a reset of the device, the pointer should first be commanded to move 24 microstep steps clock-wise (cw) to the nearest full step location. because the pointer was in a static position at default, the master could determine the number of microsteps the device took by monitoring and counting the st4 (st5) status bit transitions, confirming the pointer is again in a static position. only one gauge at a time can be returned to the zero position. an rtz should not begin until the gauge to be calibrated is at a static position and its pointer is at a full step position. an attempt to calibrate a gauge while the other is in the process of an rtz event, will be ignored by the device. in most applications of the rtzr command, it is possible to avoid a visually obvious sequential calibration by first bringing the pointer back to the previous zero position and then re- calibrating the pointers. after completion of a rtz, the 33991 automatically assigns the zero step position to the full step position at the end stop location. because the actual zero position could lie anywhere within the full step where the zero was detected, the assigned zero position could be within a window of 0.5 .anrtzcanbe used to detect stall, even if the pointer already rests on the end stop when an rtz sequence is initiated; however, it is recommended the pointer should be advanced by at least 24 microsteps to the nearest full step prior to initiating the rtz. f r e e s c a l e s e m i c o n d u c t o r , i freescale semiconductor, inc. f o r m o r e i n f o r m a t i o n o n t h i s p r o d u c t , g o t o : w w w . f r e e s c a l e . c o m n c . . .
33991 motorola analog integrated circuit device data 28 figure 9. full steps (ccw) rtz output the non-driven coil is analyzed determining the state of the motor during an rtz event. the 33991multiplexes the coil voltages and provides the signal from the non-driven coil to the rtz pin. default mode default mode refers to the state of the 33991after an internal or external reset and prior to spi communication. an internal reset occurs during v dd power-up. an external reset is initiated by the rst pin driven to a logic [0]. with the exception of the rtz cr full step time, all of the specific pin functions and internal registers will operate as though all of the addressable configuration register bits were set to logic [0]. this means for example, all of the outputs will be disabled after a power-up or external reset, so flag st6 is set, indicating an under voltage event. anytime an external reset is exerted and the default is restored, all configuration parameters, e.g., clock calibration, maximum speed, rtz parameters, etc. are lost and must be reloaded. fault logic requirements the 33991device indicates each of the following faults as they occur:  over temperature fault  out-of-range voltage faults  clockoutofspec over current faults are not reported directly. it is likely, however, an over current condition will become a thermal issue and be reported. over temperature fault requirements the 33991incorporates over temperature protection circuitry, shutting off the affected gauge driver when excessive temperatures are measured. in the event of a thermal overload, the affected gauge driver is automatically disabled. the over temperature fault is flagged via st0 and/or st1. its respective flag continues to be set until the affected gauge is successfully re-enabled, provided the junction temperature has fallen below the hysteresis level. over voltage fault requirements the device is capable of surviving v pwr voltages within the maximum specified in the maximum ratings table. v pwr levels resultinginanovervoltageshutdownconditioncanresultin uncertain pointer positions. therefore, the pointer position should be re-calibrated. the master is then notified of an over voltage event via the st6 flag on the so pin. over voltage detection and notification occurs regardless of whether the gauge(s) are enabled or disabled. note: there is no way to distinguish between an over voltage fault and an under voltage fault from the status bits. if there is no external means for the microcontroller to determine the fault type, the gauges should be routinely enabled following the transition to logic [0] of st6. + _ _ + 0 1 2 3 0 2 0 0 3 1 i max i max i max i max 0 0 i coil i coil sine cosine f r e e s c a l e s e m i c o n d u c t o r , i freescale semiconductor, inc. f o r m o r e i n f o r m a t i o n o n t h i s p r o d u c t , g o t o : w w w . f r e e s c a l e . c o m n c . . .
motorola analog integrated circuit device data 33991 29 over current fault requirements: output currents are limited to safe levels, then the device will rely on thermal shutdown to protect itself. under voltage fault requirements severe under voltage v pwr conditions may result in uncertain pointer positions; therefore, recalibration of the pointer position may be advisable. during an under voltage event, the state machine and outputs continues to operate, although the outputs may be unable to reach the higher voltage levels. the master is notified of an under voltage event via the so pin. under voltage detection occurs regardless whether the gauge(s) are enabled, or disabled. note: there is no way to distinguish between over voltage and under voltage faults from the status bits. if there is no external means for the microcontroller to determine the fault type, the gauges should be routinely enabled following the transition to logic [0] of st6. electrical requirements all voltages specified are measured relative to the device ground pins, unless otherwise noted. current flowing into 33991is positive, while current flowing out of the device is negative. resets (sleep mode) the device can reset internally or externally. if the v dd level falls below the v dduv level, specified in the static electrical characteristics , the device resets and powers up in the default mode. similarly, if the rst pin is driven to a logic [0], the device will reset to its default state. the device will consume the least amount of current ( idd and ipwr ) when the rst pin is logic [0]. this is also referred to as the sleep mode. application information the 33991is an extremely versatile device, used in a variety of applications. table 15, and the following sample code, provides a step-by-step example of configuring using many of the features designed into the ic. this example is intended to give a generic overview of how the device could be used. further, it is intended to familiarize users with some of its capabilities. in steps 1-9, the gauges are enabled, the clock is calibrated, the device is configured for rtz, and the pointers are calibrated with the rtz command. steps 1-9 are representative of the first steps after power-up. maximum velocity is set in step 10, if necessary. in steps 11 and 12, pointers are commanded to the desired positions by the master. these steps are the most frequently used during normal operation. steps 13 -15 place the pointer close to the zero position prior to the initiation of the rtz commands in steps 16- 19. step 20 disables the gauges, placing them into a low quiescent current mode. table 15. gdic setup, configuration, & usage example step number command description table/figure number 1 pecr a. enable gauges. - bit pe0: gauge 0. - bit pe1: gauge 1. table 3 figure 7 b. clock calibration - bit pe3: enables calibration procedure. - bit pe4: set clock f =1 mhz maximum or nominal. send 8 s pulse on cs to calibrate 1 mhz clock. 2 rtzcr set rtz full step time - bits rc3:rc0. tables 9-10 set rtz blanking time -bitrc4. tables 9-10 preload rtz accumulator. - bits rc12:rc5. table 11 check so for an out of range clock calibration. - is bit st7 logic level 1? if so, repeat steps 1 and 2. table 12 3 pos0r a. move pointer to position 24 prior to rtz. table 5 f r e e s c a l e s e m i c o n d u c t o r , i freescale semiconductor, inc. f o r m o r e i n f o r m a t i o n o n t h i s p r o d u c t , g o t o : w w w . f r e e s c a l e . c o m n c . . .
33991 motorola analog integrated circuit device data 30 4 pos1r move pointer to position 24 prior to rtz. table 6 check so to see if gauge 0 has moved. - is bit st4 logic level 1? if so, gauge 0 has moved to the first microstep. table 12 5 pecr send null command to see if gauges have moved. - bit pe12. table 3 check so to see if gauge 0 (gauge 1) has moved - is bit st4 (st5) logic level 1? i f so, gauge 0 (gauge 1) has moved another microstep. keep track of the movement. if 24 steps are finished, and both gauges are at a static position, then rtz. otherwise repeat steps a) and b). table 12 6 rtz a. return one gauge at a time to the zero stop using rtz command bit rz0 selects the gauge bit rz1 is used to enable or disable an rtz. - bits rz3:rz2 are used to select the rtz accumulator bits clocking out on the so pin. table 7 b. select the rtz accumulator bits clocking out on the so bits st15:st8. these will be used if characterizing the rtz. - bits rz3: rz2 are used to select the bits. table 8 7 pecr a. check the status of the rtz by sending the null command to monitor so bit st2 - bit pe12 is the null command. table 3 is st2 logic level 0? if not, gauge 0 is still returning and null command should be resent. table 12 8 rtz return the other gauge to the zero stop. if the second gauge is driving a different pointer than the first, a new rtzcr command may be required to change the full step time. tables 7-8 9 pecr a. check the status of the rtz by sending the null command to monitor so bit st3 - bit pe12 is the null command. table 3 is st3 logic level 0? if not, gauge 1 is still returning. null command should be resent. table 12 10 velr change the maximum velocity of the gauge bits v8:v9. determine which gauge(s) will change the maximum velocity bits v7:v0. determine the maximum velocity position from the acceleration table. table 4 11 pos0r position gauge 0 pointer - bits p0 11: p0 0: desired pointer position. table 5 check so for out of range v pwr - bit st6 logic level 1. i fso,rtzaftervalidv pwr . table 12 check so for over temperature bit st0 logic level 1. if so, enable driver again. if st0 continues to indicate over temperature, shut down gauge 0. if st2 returns to normal, reestablish the zero reference by rtz command. 12 pos1r position gauge 1 pointer - bits p1 11:p1 0: desired pointer position table 6 check so for out of range v pwr bit st6 logic level 1. i f so, rtz after valid v pwr . table 12 check so for over temperature bit st1 logic level 1. if so, enable driver again. if st1 continues to indicate over temperature, shut down gauge 1. if st1 returns to normal, reestablish the zero reference by rtz command. 13 pos0r a. return the pointers close to zero position using pos0r table 5 b. move pointer position at least 24 microsteps cw to the nearest full step prior to rtz. table 15. gdic setup, configuration, & usage example (continued) step number command description table/figure number f r e e s c a l e s e m i c o n d u c t o r , i freescale semiconductor, inc. f o r m o r e i n f o r m a t i o n o n t h i s p r o d u c t , g o t o : w w w . f r e e s c a l e . c o m n c . . .
motorola analog integrated circuit device data 33991 31 14 pos1r return the pointers close to zero position using pos1r table 6 move pointer position at least 24 microsteps cw to the nearest full step position prior to rtz. check so to see if gauge 0 has moved. - is bit st4 logic level 1? if so, gauge 0 has moved to the first microstep. table 12 15 pecr send null command to see if gauges have moved. -bitspe12 table 3 check so to see if gauge 0 (gauge 1) has moved. - is bit st4 (st5) logic level 1? i f so, gauge 0 (gauge 1) has moved another microstep. keep track of movement. if 24 steps are finished and both gauges are at a static position, then rtz. otherwise repeat steps a) and b). table 12 16 rtz a. return one gauge at a time to the zero stop using rtz. command bit rz0 selects the gauge bit rz1 used to enable or disable an rtz. - bits rz3:rz2 are used to select the rtz accumulator bits clocking out on the so pin. tables 7-8 b. select the rtz accumulator bits clocking out on the so bits st15:st8. these will be used if characterizing the rtz. - bits rz3:rz2 are used to select the bits. 17 pecr a. check the status of the rtz by sending the null command to monitor so bit st2 - bit pe12 is the null command. table 3 is st2 logic level 0? if not, gauge 0 is still returning. null command should be resent. table 12 18 rtz return the other gauge to the zero stop. if the second gauge is driving a different pointer than the first, a new rtzcr command may be required to change the full step time. tables 7-8 19 pecr a. check the status of the rtz by sending the null command to monitor so bit st3 - bit pe12 is the null command. table 3 is st3 logic level 0? if not, gauge 1 is still returning. null command should be resent. table 12 20 disable both gauges and go to standby bit pe0:pe1 are used to disable the gauges table 3 put the device to sleep. -rst pin is pulled to logic 0. table 15. gdic setup, configuration, & usage example (continued) step number command description table/figure number f r e e s c a l e s e m i c o n d u c t o r , i freescale semiconductor, inc. f o r m o r e i n f o r m a t i o n o n t h i s p r o d u c t , g o t o : w w w . f r e e s c a l e . c o m n c . . .
33991 motorola analog integrated circuit device data 32 sample code / * the following example code demonstrates a typical set up configuration for a m68hc912b32. */ / * this code is intended for instructional use only. motorola assume s no liability for use or */ / * modification of this code. it is the responsibility of t he user to verify all parameters, variables,*/ / * timings, etc. */ v oid initgauges (void) { /* step 1 */ command_gauge (0x00,0x03); /* enable gauges */ command_gauge (0x00,0x08); /* clock cal bit set */ /* 8 usec calibration */ ports = 0x00; /* enable gdic cs pin - ports2 */ for (cnt = 0; cnt < 5; cnt++) { /* wait for 8 usec calibration */ nop; } ports = 0x04; /* disable gdic cs pin - ports2 */ /* step 2 */ command_gauge (0xa0,0x21); /* send rtzcr values */ command_gauge (0x10,0x00); /* null read to get so status */ /*check so bits for out of range clock calibration */ if ((status & 0x80) != 0) /*if clock is out of range then recalibrate 8 usec pulse */ /* step 3 */ command_gauge (0x40,0x18); /* send position to gauge0 */ /* step 4 */ command_gauge (0x60,0x18); /* send position to gauge1 */ /* check so bit st4 to see if gauge 0 has moved */ if ((status & 0x10) != 0) /* if st4 is logic 1 then gauge 0 has moved to the first microstep */ /* step 5 */ command_gauge (0x10,0x00); /* null read to get so status */ /* check so bit st4 to see if gauge 0 has moved */ if ((status & 0x10) != 0) /* if it has moved, then keep track of position */ /* wait until 24 steps are finished then send a rtz command (step 7) */ /* step 6 */ command_gauge (0x80,0x02); /* send rtz to gauge 0 */ /* step 7 */ command_gauge (0x10,0x00); /* null read to get status */ /* read status until rtz is done */ while ((status & 0x04) != 0) { command_gauge (0x10,0x00);} f r e e s c a l e s e m i c o n d u c t o r , i freescale semiconductor, inc. f o r m o r e i n f o r m a t i o n o n t h i s p r o d u c t , g o t o : w w w . f r e e s c a l e . c o m n c . . .
motorola analog integrated circuit device data 33991 33 /* step 8 */ command_gauge (0x80,0x03); /* send rtz to gauge 1 */ /* step 9 */ command_gauge (0x10,0x00); /* null read to get status */ /* read status until rtz is done */ while ((status & 0x08) != 0) { command_gauge (0x10,0x00);} /* step 10 */ command_gauge (0x23,0xff); /* send velocity */ /* step 11 */ command_gauge (0x4f,0xff); /* send position to gauge0 */ /*check so bits for out of range vpwr and overtemperature */ if ((status & 0x40) != 0) /* if bit st6 is logic 1 then rtz after valid vpwr */ if ((status & 0x01) != 0) /* if bit st0 is logic 1 then enable driver again. /* if st0 continues to indicate over temperature, then shut down gauge 0. */ /* if st2 returns to normal, then reestablish the zero reference by rtz command. */ /* step 12 */ command_gauge (0x6f,0xff); /* send position to gauge1 */ /*check so bits for out of range vpwr and over-temperature */ if ((status & 0x40) != 0) /* if bit st6 is logic 1 then rtz after valid vpwr */ if ((status & 0x01) != 0) /* if bit st0 is logic 1 then enable driver again. /* if st0 continues to indicate over-temperature, then shut down gauge 1. */ /* if st2 returns to normal, then reestablish the zero reference by rtz command. */ /* step 13 */ command_gauge (0x40,0x00); /* send position to gauge 0 */ /* return the pointers close to zero position */ command_gauge (0x40,0x18); /* send position to gauge 0 */ /* move the pointer at least 24 microsteps cw to the nearest full step */ /* step 14 */ command_gauge (0x60,0x00); /* send position to gauge 1 */ /* return the pointers close to zero position */ command_gauge (0x60,0x18); /* send position to gauge 1 */ /* move the pointer at least 24 microsteps cw to the nearest full step */ /* check so bit st4 to see if gauge 0 has moved */ if ((status & 0x10) != 0) /* if st4 is logic 1 then gauge 0 has moved to the first microstep */ f r e e s c a l e s e m i c o n d u c t o r , i freescale semiconductor, inc. f o r m o r e i n f o r m a t i o n o n t h i s p r o d u c t , g o t o : w w w . f r e e s c a l e . c o m n c . . .
33991 motorola analog integrated circuit device data 34 / *step15 */ command_gauge (0x10,0x00); /* null read to get status */ /* check so bit st4 to see if gauge 0 has moved */ if ((status & 0x10) != 0) /* if it has moved, then keep track of position */ /* wait until 24 steps are finished then send a rtz command (step 17) */ /* step 16 */ command_gauge (0x80,0x02); /* send rtz to gauge 0 */ /* step 17 */ command_gauge (0x10,0x00); /* null read to get status */ /* read status until rtz is done */ while ((status & 0x04) != 0) { command_gauge (0x10,0x00);} /* step 18 */ command_gauge (0x80,0x03); /* send rtz to gauge 1 */ /* step 19 */ command_gauge (0x10,0x00); /* null read to get status */ /* read status until rtz is done */ while ((status & 0x08) != 0) { command_gauge (0x01,0x00);} /* step 20 */ command_gauge (0x00,0x00); /* disable gauges and go into standby */ /* put device to sleep by setting rstb to logic 0 */ } v oid command_gauge (char msb, char lsb) /*this subroutine sends the gdic commands on the spi port */ { ports = 0x00; /* chip select low (active) */ sp0dr = msb; /* send first byte of gauge command */ while ((sp0sr & 0x80) == 0); /* wait for rxflag (first byte) */ rtzdata = sp0dr; /* read status msb */ sp0dr = lsb; /* send second byte of command */ while ((sp0sr & 0x80) == 0); /* wait for rxflag (second byte) */ status = sp0dr; /* read status lsb */ ports = 0x04; /* chip select high (deactivated) */ } / * motorola semiconductor products sector */ / * october 4, 2002 */ f r e e s c a l e s e m i c o n d u c t o r , i freescale semiconductor, inc. f o r m o r e i n f o r m a t i o n o n t h i s p r o d u c t , g o t o : w w w . f r e e s c a l e . c o m n c . . .
motorola analog integrated circuit device data 33991 35 package drawing notes: 1. dimensioning and tolerancing per ansi y14.5m, 1982. 2. controlling dimension: millimeter. 3. dimensions a and b do not include mold protrusion. 4. maximum mold protrusion 0.15 (0.006) per side. 5. dimension d does not include dambar protrusion. allowable dambar protrusion shall be 0.13 (0.005) total in excess of d dimension -a- -b- p 12x d 24x 12 13 24 1 m 0.010 (0.25) b m s a m 0.010 (0.25) b s t -t- g 22x seating plane k c r x45 m f j dim millimeters inches min max min max a 15.25 15.54 0.601 0.612 b 7.40 7.60 0.292 0.299 c 2.35 2.65 0.093 0.104 d 0.35 0.49 0.014 0.019 f 0.41 0.90 0.016 0.035 g 1.27 bsc 0.050 bsc j 0.23 0.32 0.009 0.013 k 0.13 0.29 0.005 0.011 m 0 8 0 8 p 10.05 10.55 0.395 0.415 r 0.25 0.75 0.010 0.029 dw suffix plastic package case 751e-04 soicw issue e f r e e s c a l e s e m i c o n d u c t o r , i freescale semiconductor, inc. f o r m o r e i n f o r m a t i o n o n t h i s p r o d u c t , g o t o : w w w . f r e e s c a l e . c o m n c . . .
how to reach us: usa/europe/locations not listed: motorola literature distribution: p.o. box 5405, denver, colorado 80217. 1-303-675-2140 or 1-800-441-2447 japan: motorola japan ltd.; sps, technical information center, 3-20-1 minami-azabu. minato-ku, tokyo 106-8573 japan. 81-3-3440-3569 asia/pacific: motorola semiconductors h.k. ltd.; silicon harbour centre, 2 dai king street, tai po industrial estate, tao po, n.t., hong kong. 852-26668334 technical information center: 1-800-521-6274 mc 33991/d motorola reserves the right to make changes without further notice to any products herein. motorola makes no warranty, representation or guarantee regarding the suitability of its products for any particular purpose, nor does motorola assume any liability arising out of the application or use of a ny product or circuit, and specifically disclaims any and all liability, including without limitation consequential or incidental damages. ?typical? parame ters can and do vary in different applications and actual performance may vary over time. all operating parameters, including ?typicals?, must be validated for eac hcustomer application by customer?s technical experts. motorola does not convey any license under its patent rights nor the rights of others. motorola product sarenot designed, intended, or authorized for use as components in systems intended for surgical implant into the body, or other applications intended to sup port or sustain life, or for any other appl ication in which the failure of the motorola product could create a situation where personal injury or death may occu r. should buyer purchase or use motorola products for any such unintended or unauthorized application, buyer shall indemnify and hold motorola and its officers, employees, subsidiaries, affiliates, and distributors harml ess against all claims, costs, damages , and expenses, and reasonable attor ney fees arising out of, directly or indirectly, any claim of personal injury or death associated with such unintended or unauthorized use, even if such claim a lleges that motorola was negligent regarding the design or manufacture of the part. motorola and are registered trademarks of motorola, inc. motorola, inc. is an equal opportunity/affirmative action employer. motorola and the stylized m logo are registered in the us patent and trademark office. all other pr oduct or service names are the property of their respective owners. ? motorola, inc. 2002 f r e e s c a l e s e m i c o n d u c t o r , i freescale semiconductor, inc. f o r m o r e i n f o r m a t i o n o n t h i s p r o d u c t , g o t o : w w w . f r e e s c a l e . c o m n c . . .


▲Up To Search▲   

 
Price & Availability of PC33991DHR2

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X